<?php

/**
 * Lumad CMS
 * Copyright (c)	2007, Jason A. Banico
 *
 * Licensed under The MIT License
 * Redistributions of files must retain the above copyright notice.
 *
 * @filesource
 * @copyright		Copyright (c) 2007, Jason A. Banico
 * @link			http://cakeforge.org/projects/lumad-cms/
 * @package			lumad-cms
 * @license			http://www.opensource.org/licenses/mit-license.php The MIT License
 */

class ContentPage extends AppModel {

  var $name = 'ContentPage';

  var $validate = array(
    'title' => VALID_NOT_EMPTY,
    'url' => VALID_NOT_EMPTY
  );

  var $hasOne = array('MenuItem' => 
                      array('className' => 'MenuItem',
                            'conditions' => '',
                            'order' => '',
                            'dependent' => 'true',
                            'foreignKey' => 'content_page_id'
                      )
  );

}
?>
